<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ios-photo-rotate-origin</title>
</head>
<body>

<img class="img" width="200"/>
<br/>
<input class="button" type="file" value="选择图片"/>

<script type="text/javascript" src="ios-photo-rotate-origin.js/js.js"></script>

<script type="text/javascript">
    document.getElementsByClassName('button')[0].addEventListener('change',function (event) {
        new IosPhotoRotateOrigin(event.target.files[0],function(res){
            document.getElementsByClassName('img')[0].src=res.base64;
            console.log(res.blob);
        });
    })
</script>
</body>
</html>